import request from '@/utils/request'

// 查询运行任务日志列表
export function listJobRunLog(query) {
  return request({
    url: '/streaming/JobRunLog/list',
    method: 'get',
    params: query
  })
}

// 查询运行任务日志详细
export function getJobRunLog(id) {
  return request({
    url: '/streaming/JobRunLog/' + id,
    method: 'get'
  })
}

// 新增运行任务日志
export function addJobRunLog(data) {
  return request({
    url: '/streaming/JobRunLog',
    method: 'post',
    data: data
  })
}

// 修改运行任务日志
export function updateJobRunLog(data) {
  return request({
    url: '/streaming/JobRunLog',
    method: 'put',
    data: data
  })
}

// 删除运行任务日志
export function delJobRunLog(id) {
  return request({
    url: '/streaming/JobRunLog/' + id,
    method: 'delete'
  })
}

// 导出运行任务日志
export function exportJobRunLog(query) {
  return request({
    url: '/streaming/JobRunLog/export',
    method: 'get',
    params: query
  })
}